from common import *

DEBUG = True
TEMPLATE_DEBUG = DEBUG
DAJAXICE_DEBUG = True

DJANGO_STATIC_MEDIA = True

ADMIN_MEDIA_PREFIX = '/media/'

DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'infocarretera'
DATABASE_USER = 'postgres'
DATABASE_PASSWORD = ''
DATABASE_HOST = '192.168.10.32'
DATABASE_PORT = ''

if DJANGO_STATIC_MEDIA:
    MEDIA_URL = '/static'
    MEDIA_ROOT = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../static')
else:
    MEDIA_ROOT = ''
    MEDIA_URL = 'http://static.infocarretera.com'

CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

#Geo
GEOS_LIBRARY_PATH='/Library/Frameworks/GEOS.framework/unix/lib/libgeos_c.dylib'
GEOIP_PATH = '/Users/geoip'

import logging
logging.basicConfig(level=logging.DEBUG)